//
//  OJProject.h
//  openJira
//
//  Created by Vincent Demay on 02/05/10.
//  Copyright 2010 Goojet. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "OJConnector.h"
#import "OJXMLRPCModel.h"


@interface OJProject : NSObject {
	NSString *name;
	NSString *key;
	int lid;
}
@property (nonatomic, retain) NSString* name;
@property (nonatomic, retain) NSString* key;
@property (nonatomic) int lid;

@end


////////////////////////// MANAGE RESPONSES ///////////////////
@protocol OJProjectListDelegate;

@interface OJProjectList : OJXMLRPCModel {
	NSMutableArray *projects;
	id<OJProjectListDelegate> delegate;
}
@property (nonatomic, retain) NSMutableArray *projects;
@property (nonatomic, assign) id<OJProjectListDelegate> delegate;
- (void) getProjects;
@end


@protocol OJProjectListDelegate
- (void) object:(OJProjectList*) projects isReady:(BOOL) onError;

@end

